[C#] WebClient construction overhead
Posted
by Barguast
on Stack Overflow
See other posts from Stack Overflow
or by Barguast
Published on 2010-03-22T12:05:32Z
Indexed on
2010/03/22
12:11 UTC
Read the original article
Hit count: 462
I have a client which makes a limited number of concurrent web requests. I use WebClient for this purpose. I currently have a pool of WebClient-s which I create once and use whichever one is idle.
This approach is becoming a little cumbersome though, and I'm wondering if there is any benefit to having a collection of pre-constructed WebClient instances, or if creating them on the fly wouldn't be too much trouble?
© Stack Overflow or respective owner